package com.zjitc.dao;

import com.zjitc.model.Orderitem;
import com.zjitc.model.Orders;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/22 15:22
 * @description:
 */
public interface OrderDao {

  void add(Orders orders);

  void updateOrder(
      @Param("oid")String oid,
      @Param("name")String name,
      @Param("phone")String phone,
      @Param("addr")String addr
  );



  List<Orderitem> findOrderItems(String oid);

  List<Orders> findPageByUid(Integer uid);

  void deleteOrder(String oid);

  List<Orders> findPageAllOrders();

  void updateOrderState(String oid);
}
